<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>管理员 欢迎页</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="__XADMIN__/css/font.css">
        <link rel="stylesheet" href="__XADMIN__/css/xadmin.css">
        <script src="__XADMIN__/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="__XADMIN__/js/xadmin.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
        <!-- // 百度统计代码  -->
        <script>
          var _hmt = _hmt || [];
          (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?6f65eecea5e089dae94d6b9cffec3623";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
          })();
        </script>
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <blockquote class="layui-elem-quote">欢迎『<span class="x-red">{$list.group}</span>』&nbsp;
                                <b>{$list['xingming']}</b>&nbsp;&nbsp;&nbsp;&nbsp;当前时间：<span id="current-time"></span>
                                <span id="show"></span>
                            </blockquote>
                        </div>
                    </div>
                </div>
                {if session("password") == 123456}
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-body">
                                <blockquote class="layui-elem-quote" style="color: red;">
                                  您正在使用初始密码，为了保障信息安全，初始密码将于&nbsp;&nbsp;<b>{$list.guoqi}</b>&nbsp;&nbsp;停用，请及时
                                  <span>
                                    <b><a onclick="xadmin.open('修改密码','/admin/info/editpassword','400','250')" style="color: red; font-size: 14px;">
                            修改密码</a></b>
                                </span>
                                    。
                                </blockquote>
                            </div>
                        </div>
                    </div>
                {/if}
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
                                <div carousel-item="">
                                    <ul class="layui-row layui-col-space10 layui-this">
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>考试次数</h3>
                                                <p>
                                                    <cite>{$list.kaoshi}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>现有学生数</h3>
                                                <p>
                                                    <cite>{$list.student}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>教师数</h3>
                                                <p>
                                                    <cite>{$list.admin}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>荣誉数</h3>
                                                <p>
                                                    <cite>{$list.rongyu}</cite></p>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs2">
                                            <a href="javascript:;" class="x-admin-backlog-body">
                                                <h3>课题数</h3>
                                                <p>
                                                    <cite>{$list.keti}</cite></p>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <blockquote class="layui-elem-quote layui-quote-nm">
                              <a class="x-a" href="javascript:;">{$list.webtitle}{$list.version}正式上线了！在这个版本中修复已经错误，完善相关功能。下载后会有意外收获哦~</a>
                            </blockquote>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">系统信息</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>系统版本</th>
                                        <td><a href="javascript:;" onclick="parent.xadmin.add_tab('系统升级日志','/login/log',true);">{$list.version}　升级日志</a>
                                        </td></tr>
                                    <tr>
                                        <th>服务器地址</th>
                                        <td>{$list.server.SERVER_ADDR}</td></tr>
                                    <tr>
                                        <th>操作系统</th>
                                        <td>{$list.xitong}</td></tr>
                                    <tr>
                                        <th>运行环境</th>
                                        <td>{$list.server.SERVER_SOFTWARE}</td></tr>
                                    <tr>
                                        <th>PHP版本</th>
                                        <td>{$list.php}</td></tr>
                                    <tr>
                                        <th>mysql版本</th>
                                        <td>{$list.sql}</td></tr>
                                    <tr>
                                        <th>ThinkPHP</th>
                                        <td>{$list.thinkphp}</td></tr>
                                    <tr>
                                        <th>X-admin版本</th>
                                        <td>2.2</td></tr>
                                    <tr>
                                        <th>上传附件限制</th>
                                        <td>2M</td></tr>
                                    <tr>
                                        <th>SESSION时间限制</th>
                                        <td>{$list.session}</td></tr>
                                    <tr>
                                        <th>缓存时间限制</th>
                                        <td>{$list.cacheExpire}</td></tr>
                                    <tr>
                                        <th>剩余空间</th>
                                        <td>{$list.kongjian}</td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">开发团队</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>版权所有</th>
                                        <td>巴掌 / 学生成绩统计
                                            <a href="https://gitee.com/dlbz/shangma.git" target="_blank">访问项目地址</a></td>
                                    </tr>
                                    <tr>
                                        <th>开发者</th>
                                        <td>大连巴掌(w86112@vip.163.com)</td></tr>
                                    <tr>
                                        <th>备案</th>
                                        <td>辽ICP备19005631号</td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <style id="welcome_style"></style>
                <div class="layui-col-md12">
                    <blockquote class="layui-elem-quote layui-quote-nm">感谢{$list.thinks}提供技术支持。</blockquote></div>
            </div>
        </div>
        </div>
        <script type="text/javascript">
          window.onload = function() {
            let show = document.getElementById("show");
            setInterval(function() {
              let date = new Date();   // 程序计时的月从0开始取值后+1
              let y = date.getFullYear(),
                m = ((date.getMonth()+1) >= 10 ? (date.getMonth() + 1 ) : '0' + (date.getMonth() + 1)),
                d = (date.getDate() >= 10 ? date.getDate() : '0' + date.getDate()),
                hh = date.getHours() >= 10 ? date.getHours() : '0' + date.getHours(),
                mm = date.getMinutes() >= 10 ? date.getMinutes() : '0' + date.getMinutes(),
                ss = date.getSeconds() >= 10 ? date.getSeconds()  : '0' +  date.getSeconds() ;
              show.innerHTML = y + '-' + m + '-' + d + ' ' + hh + ':' + mm + ':' + ss;
            }, 1000);
          };
        </script>
    </body>
</html>
